package com.ja.enumall;

/**
 * Created by 11936 on 2019/4/30.
 */
public enum CurrencyCodeEnum {
    RENMINBI("人民币", 0),MEIYUAN("美元", 1);

    private String statusName;
    private Integer statusValue;

    public static String getStatusName(Integer statusValue){
        for (CurrencyCodeEnum isTaxEnum: CurrencyCodeEnum.values()){
            if(isTaxEnum.getStatusValue() == statusValue){
                return isTaxEnum.getStatusName();
            }
        }
        return null;
    }

    CurrencyCodeEnum(String statusName, Integer statusValue) {
        this.statusName = statusName;
        this.statusValue = statusValue;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public Integer getStatusValue() {
        return statusValue;
    }

    public void setStatusValue(Integer statusValue) {
        this.statusValue = statusValue;
    }
}
